export const EVENT_TYPE = {
    start: "start(开始)",
    end: "end(结束)"
};
export const LISTENER_EVENT_TYPE = {
    TYPE: {
        1: "EVENT",
        2: "EXECUTION",
        3: "TASK"
    },
    EVENT: {
        LIST: [
            {
                key: "TASK_ASSIGNED",
                label: "TASK_ASSIGNED(任务已分配)",
                value: "TASK_ASSIGNED"
            },
            {
                key: "TASK_CREATED",
                label: "TASK_CREATED(任务已创建)",
                value: "TASK_CREATED"
            },
            {
                key: "TASK_COMPLETED",
                label: "TASK_COMPLETED(任务已完成)",
                value: "TASK_COMPLETED"
            },
            {
                key: "PROCESS_STARTED",
                label: "PROCESS_STARTED(流程已启动)",
                value: "PROCESS_STARTED"
            },
            {
                key: "PROCESS_COMPLETED",
                label: "PROCESS_COMPLETED(流程已完成)",
                value: "PROCESS_COMPLETED"
            },
            {
                key: "PROCESS_CANCELLED",
                label: "PROCESS_CANCELLED(流程已取消)",
                value: "PROCESS_CANCELLED"
            }
        ],
        MAP: {
            TASK_ASSIGNED: "TASK_ASSIGNED(任务已分配)",
            TASK_CREATED: "TASK_CREATED(任务已创建)",
            TASK_COMPLETED: "TASK_COMPLETED(任务已完成)",
            PROCESS_COMPLETED: "PROCESS_COMPLETED(流程已完成)",
            PROCESS_CANCELLED: "PROCESS_CANCELLED(流程已取消)",
            PROCESS_STARTED: "PROCESS_STARTED(流程已启动)"
        }
    },
    EXECUTION: {
        LIST: [
            {
                key: "start",
                label: "start(开始)",
                value: "start"
            },
            {
                key: "end",
                label: "end(开始)",
                value: "end"
            }
        ],
        MAP: {
            start: "start(开始)",
            end: "end(开始)"
        }
    },
    TASK: {
        LIST: [
            {
                key: "create",
                label: "create(任务已创建)",
                value: "create"
            },
            {
                key: "assignment",
                label: "assignment(任务已分配)",
                value: "assignment"
            },
            {
                key: "complete",
                label: "complete(任务已完成)",
                value: "complete"
            },
            {
                key: "delete",
                label: "delete(任务将被删除)",
                value: "delete"
            }
        ],
        MAP: {
            create: "create(任务已创建)",
            assignment: "assignment(任务已分配)",
            complete: "complete(任务已完成)",
            delete: "delete(任务将被删除)"
        }
    }
}

export const FIELD_TYPE = {
    STRING: {
        NAME: "字符串值",
        VALUE: 'string'
    },
    EXPRESS: {
        NAME: "表达式",
        VALUE: 'expression'
    }
}